package com.Test;

import java.util.Arrays;
import java.util.List;

public class Test19 {
    public static void main(String[] args) {

        String demo = "1.5|涤纶|凯文";
        String[] split1 = demo.split("\\|");
        List<String> stringList1 = Arrays.asList(split1);
        for (String s : stringList1) {
            System.out.println(s);
        }


        String test = "102563,翻布";
        String[] split = test.split(",");
        List<String> stringList = Arrays.asList(split);
        for (String s : stringList) {
            System.out.println(s);
        }

    }
}
